package com.hnucm.onlinealgstudy.service;

import com.hnucm.onlinealgstudy.dao.NewsMapper;
import com.hnucm.onlinealgstudy.pojo.News;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NewsServiceImpl implements NewsService{

    @Autowired
    NewsMapper newsMapper;
    @Override
    public List<News> getNewsList() {
        return newsMapper.getNewsList();
    }
}
